from re import S, T
from numpy import square
from manimlib import *
#75cfb8
#bbdfc8
#f0e5d8
#ffc478
class p1(Scene):
    def construct(self):
        # self.add(NumberPlane())
        frame = self.camera.frame
        # self.play(frame.animate.set_width(16))
        l8=Line(UP*2,DOWN*2,stroke_color='#ffc478').shift(LEFT*4)
        l2=Line(UP,ORIGIN,stroke_color='#75cfb8').shift(RIGHT)
        l3=Line(ORIGIN,RIGHT*1.5).next_to(l2.get_bottom(),RIGHT,buff=0).set_color(GREY)
        l6=Line(ORIGIN,RIGHT*3).next_to(l8.get_bottom(),RIGHT,buff=0).set_color(GREY)
        l4=Line(UP,DOWN).next_to(l6.get_end(),UP,buff=0).set_color(GREY)
        self.add(l2,l3,l8,l4,l6)
        t2=Tex('2').next_to(l2,LEFT)
        t3=Tex('3').next_to(l3,DOWN)
        t4=Tex('4').next_to(l4)
        t6=Tex('6').next_to(l6,DOWN)
        self.add(t2,t3,t4,t6)
        light1=Line(l8.get_top(),l4.get_top())
        light2=Line(l2.get_top(),l3.get_end())
        o=[2,-2,0]
        self.add(light1,light2)
        self.wait()
class p2(Scene):
    def construct(self):
        # self.add(NumberPlane())
        frame = self.camera.frame
        # self.play(frame.animate.set_width(16))
        l8=Line(UP*2,DOWN*2,stroke_color='#ffc478').shift(LEFT*4)
        l2=Line(UP,ORIGIN,stroke_color='#75cfb8').shift(RIGHT)
        l3=Line(ORIGIN,RIGHT*1.5).next_to(l2.get_bottom(),RIGHT,buff=0).set_color(GREY)
        l6=Line(ORIGIN,RIGHT*3).next_to(l8.get_bottom(),RIGHT,buff=0).set_color(GREY)
        l4=Line(UP,DOWN).next_to(l6.get_end(),UP,buff=0).set_color(GREY)
        self.add(l2,l3,l8,l4,l6)
        t2=Tex('2').next_to(l2,LEFT)
        t3=Tex('3').next_to(l3,DOWN)
        t4=Tex('4').next_to(l4)
        t6=Tex('6').next_to(l6,DOWN)
        self.add(t2,t3,t4,t6)
        light1=Line(l8.get_top(),l4.get_top())
        light2=Line(l2.get_top(),l3.get_end())
        o=[2,-2,0]
        self.add(light1,light2,Line(l4.get_top(),o).set_color(BLUE),Line(l6.get_end(),o).set_color(BLUE))
        self.wait()